package park;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 况祥彬
 * @date 2020/12/17 21:25
 **/
public class test {
    public static void main(String[] args) {

        List<truck>list=new ArrayList<>();
        for (int i = 0; i < 5; i++) {
           list.add(new truck(i));
        }
        ParkGround<truck> parkGround = new ParkGround<>(list, 5, 10);

        for (int i = 0; i < 10; i++) {
            int j=i;
            new Thread(()->{
                Car car = new Car(j);
                car.getIn();
            })
        }

    }
}
